package com.atguigu.spzx.model.vo.common;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    LOGIN_ERROR(201 , "用户名或者密码错误"),
    LOGIN_AUTH(401, "未授权，请登录"),
    USER_NAME_IS_EXISTS(404, "用户不存在"),
    NODE_ERROR(503, "节点错误"),
    SYSTEM_ERROR(9999, "您的网络有问题请稍后重试");

    private final Integer code ;      // 业务状态码
    private final String message ;    // 响应消息

    private ResultCodeEnum(Integer code , String message) {
        this.code = code ;
        this.message = message ;
    }

}
